package io.github.hayeka.excel.Z_TEST;

import io.github.hayeka.excel.anno.ExcelColumn;
import io.github.hayeka.excel.anno.ExcelEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * program:
 * description:
 * author:
 * create: 2021/8/27
 **/
@ExcelEntity(sheetName = "用户信息统计")
public class User {

    @ExcelColumn(columnName = "用户名", sort = 9)
    private String userName;

    @ExcelColumn(columnName = "电子邮件", sort = 1)
    private String email;

    @ExcelColumn(columnName = "密码", sort = 13)
    private String password3;

    public User(String userName, String email, String password3) {
        this.userName = userName;
        this.email = email;
        this.password3 = password3;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword3() {
        return password3;
    }

    public void setPassword3(String password3) {
        this.password3 = password3;
    }

    public static List<User> getList() {
        List<User> userList = new ArrayList<>();
        userList.add(new User("用户1", "book@qq.com ", "222"));
        userList.add(new User("用户2", "houz@163.com", "31"));
        userList.add(new User("用户5", "insurance@jj.xx", "124"));
        userList.add(new User("用户4", "ying@github.com", "432"));
        userList.add(new User("用户3", "ceshi@ww.zz", "543"));
        return userList;
    }
}
